package nuc.edu.dao;


import nuc.edu.entities.Department;
import nuc.edu.mapper.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;


@Repository
public class DepartmentDao {


	@Autowired
	DepartmentMapper departmentMapper;

	public Collection<Department> getDepartments(){
		return departmentMapper.getDepartments();
	}

	public Department getDepartment(Integer id){
		return departmentMapper.getDepartment(id);
	}



}
